<!DOCTYPE html>
<!-- saved from url=(0018)http://m.1yyg.com/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <title>
	{wc:$key}
</title>

    <meta content="app-id=518966501" name="apple-itunes-app">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
	
	 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
	
	
<link href="{G_TEMPLATES_CSS}/mobile/comm.css" rel="stylesheet" type="text/css" />


<link href="./goods_files/comm.css" rel="stylesheet" type="text/css">

<link href="./goods_files/goods.css" rel="stylesheet" type="text/css">


<link href="{G_TEMPLATES_CSS}/mobile2/comm.css" rel="stylesheet" type="text/css" />


<script src="./goods_files/jquery190.js" language="javascript" type="text/javascript"></script>
<script src="{G_TEMPLATES_JS}/mobile/jquery190.js" language="javascript" type="text/javascript"></script>

<script language="javascript" type="text/javascript" src="./goods_files/GoodsListAll.js"></script>
<script language="javascript" type="text/javascript" src="./goods_files/Bottom.js"></script><script language="javascript" type="text/javascript" src="./goods_files/BottomFun.js"></script><script language="javascript" type="text/javascript" src="./goods_files/cnzzCount.js"></script><script language="javascript" type="text/javascript" src="./goods_files/Comm.js"></script><script language="javascript" type="text/javascript" src="./goods_files/CartComm.js"></script><script language="javascript" type="text/javascript" src="./goods_files/GoodsListAllFun.js"></script><script language="javascript" type="text/javascript" src="./goods_files/pageDialog.js"></script><script language="javascript" type="text/javascript" src="./goods_files/fastclick.js"></script></head>




<body fnav="1" class="g-acc-bg" style="zoom: 1;">


<!--触屏版内页头部-->
<div class="m-block-header" id="div-header" style="display: block;">
    <strong id="m-title">商品列表</strong>
    <a href="javascript:history.back();" class="m-back-arrow"><i class="m-public-icon"></i></a>
    <a href="?/mobile/mobile/" class="m-index-icon"><i class="m-public-icon"></i></a>
</div>
<script>
    if (navigator.userAgent.toLowerCase().match(/MicroMessenger/i) != "micromessenger") {
        document.getElementById('div-header').style.display = 'block';
    }
    document.getElementById('m-title').innerText = document.title;
</script>

    <div>
      
        
       

       

        <div class="all-list-wrapper" style="display: block;">

            <div class="menu-list-wrapper" id="divSortList">
			
			
                <ul id="divGoodsNav" class="list">
				
				<li type="0" sortid="0" class="current"><dd id="0"><a href="javascript:;"><span class="items">全部商品</span></a></dd></li>
				
				
				{wc:getlist sql="select * from `@#_category` where `model`='1'"}
						{wc:loop $data $categoryx}
						
						
				<li><dl><dd id="{wc:$categoryx['cateid']}"><a href="javascript:;"><span class="items">{wc:$categoryx['name']}</span></a></dd></dl></li>
				
				{wc:loop:end}
						{wc:getlist:end}
				
				
				</ul>
            </div>

            <div class="good-list-wrapper">
                <div class="good-menu thin-bor-bottom">
				
				
                    <ul class="good-menu-list" id="divGoodsNav2">
					
                        <li order="10" class=""><a href="javascript:;">即将揭晓</a></li>
						
                        <li order="20"><a href="javascript:;">人气</a></li>
						
                        <li order="40" class="current"><a href="javascript:;">最新</a></li>
						
						
                        <li order="50" type="price"><a href="javascript:;">价值</a></li>
						
                        <!--价值(由高到低30,由低到高31)-->
                    </ul>
					
					
                </div>
                <div class="good-list-inner">
                    <div class="good-list-box" id="loadingPicBlock">
					
					
					<div class="goodsList">
					<div id="divGoodsLoading" class="loading" style="display:none;"><b></b>正在加载...</div>
					<a id="btnLoadMore" class="loading" href="javascript:;" style="display:none;">点击加载更多</a>
					<a id="btnLoadMore2" class="loading"  style="display:none;">没有数据</a>
					<a id="btnLoadMore3" class="loading"  style="display:none;">已经到底了</a>
					</div>
		
		
		
                        <!-- <div class="goodList">
                            <ul id="ulGoodsList">
							
							
							</ul>
                        </div> -->

                        <!--<div class="load_more" style="display: none;"><a href="javascript:;">向上滑动加载更多</a></div>
                        <div class="loading"></div>-->
                        <div id="divGoodsLoading" class="loading clearfix" style="display: none;"><b></b>正在加载</div>
                    </div>
                </div>
            </div>
        </div>
        
	<input id="urladdress" value="" type="hidden" />
    <input id="pagenum" value="" type="hidden" />
		
 <script type="text/javascript">

//打开页面加载数据
window.onload=function(){
	/* wk 增加 /1/search/"+{wc:$search} */
	glist_json("list/10/1/search/"+{wc:$search});
	//购物车数量
	//$.getJSON('{WEB_PATH}/mobile/ajax/cartnum',function(data){
		//if(data.num){
		//	$("#btnCart").append('<em>'+data.num+'</em>');
		//}
	//});
	
}
//获取数据
function glist_json(parm){
	$("#urladdress").val('');
	$("#pagenum").val('');
	$.getJSON('{WEB_PATH}/mobile/mobile/glistajax/'+parm,function(data){
		$("#divGoodsLoading").css('display','none');		
		if(data[0].sum){
			var fg=parm.split("/");
			
			/* wk 增加 /1/search/"+{wc:$search} */
		 
			$("#urladdress").val(fg[0]+'/'+fg[1]+'/search/'+{wc:$search});
			$("#pagenum").val(data[0].page);
			for(var i=0;i<data.length;i++){			
			var ul='<ul><li>';
				ul+='<span id="'+data[i].id+'" class="gList_l fl"><img style="width:50px;height:50px;" src="{G_UPLOAD_PATH}/'+data[i].thumb+'">';
				/* wk  加标识 */
				if(data[i].limit_buy > 0){
					ul+= '<div class="pTitle pPurchase"><span>限购<span></span></span></div>';
				}
				
				
				ul+= '</span>';
				
				
				
				ul+='<div class="gList_r">';
				ul+='<h2 style="font-size:12px;" class="gList_r" id="'+data[i].id+'">'+data[i].title+'</h2>';
				ul+='<div class="gRate">';
				ul+='<div class="Progress-bar" id="'+data[i].id+'">';				
				ul+='<p class="u-progress"><span class="pgbar" style="width:'+(data[i].canyurenshu / data[i].zongrenshu)*100+'%;"><span class="pging"></span></span></p>';
				ul+='<ul class="Pro-bar-li">';
				ul+='<li class="P-bar01" style="width:23%;"><em>'+data[i].canyurenshu+'</em>已参与</li>';
				ul+='<li class="P-bar02" style="width:30%;"><em>'+data[i].zongrenshu+'</em>总需人次</li>';
				ul+='<li class="P-bar03" style="width:25%;"><em>'+data[i].shenyurenshu+'</em>剩余</li>';
				ul+='</ul></div>';
				ul+='<a class="add " codeid="'+data[i].id+'" href="javascript:;"><s></s></a>';
				ul+='</div></div></li></ul>';
				$("#divGoodsLoading").before(ul);			
			}
			if(data[0].page<=data[0].sum){
				$("#btnLoadMore").css('display','block');
				$("#btnLoadMore2").css('display','none');
				$("#btnLoadMore3").css('display','none');
			}else if(data[0].page>data[0].sum){
				$("#btnLoadMore").css('display','none');
				$("#btnLoadMore2").css('display','none');
				$("#btnLoadMore3").css('display','block');
			}
		}else{
			$("#btnLoadMore").css('display','none');
			$("#btnLoadMore2").css('display','block');	
			$("#btnLoadMore3").css('display','none');			
		}
	});
}
$(document).ready(function(){
	//即将揭晓,人气,最新,价格	
	$("#divGoodsNav2 li").click(function(){
	
	
	
		var l=$(this).index();
		$("#divGoodsNav2 li").removeClass().eq(l).addClass('current');
		var parm=$("#divGoodsNav2 li").eq(l).attr('order');
		$("#divGoodsLoading").css('display','block');
		$(".goodsList ul").remove();
		
			/* wk 增加 /1/search/"+{wc:$search} */
			parm = parm + '/1/search/'+{wc:$search};
		var glist=glist_json("list/"+parm);
	});
	
	//商品分类
	var dl=$("#divGoodsNav dl"),
		last=$("#divGoodsNav li:last"),
		first=$("#divGoodsNav dd:first");
	$("#divGoodsNav li:last a:first").click(function(){		
		if(dl.css("display")=='none'){
			dl.show();
			last.addClass("gSort");
			first.addClass("sOrange");			
		}else{
			//dl.hide();
			last.removeClass("gSort");
			first.removeClass("sOrange");
		}
	});
	$("#divGoodsNav  dd").click(function(){
		var s=$(this).index();
		//var t=$("#divGoodsNav .gSort dd a").eq(s).html();
		var id=$(this).attr('id');
		//$("#divGoodsNav .gSort a:first").html(t+'<s class="arrowUp"></s>');
		var l=$("#divGoodsNav .current").index(),
			parm=$("#divGoodsNav li").eq(l).attr('order');
					
			
		if(id){			
			$("#divGoodsLoading").css('display','block');
			$(".goodsList ul").remove();
			
			
			
			/* wk 增加 /1/search/"+{wc:$search} */
			parm = parm + '/1/search/'+{wc:$search};
			glist_json(id+'/'+parm);
		}else{
		
	
			
			/* wk 增加 /1/search/"+{wc:$search} */
			parm = parm + '/1/search/'+{wc:$search};
			glist_json("list/"+parm);
			$(".goodsList ul").remove();
		}	
		//dl.hide();
		last.removeClass("gSort");
		first.removeClass("sOrange");
	});
	//加载更多
	$("#btnLoadMore").click(function(){		
		var url=$("#urladdress").val(),
			page=$("#pagenum").val();
				/* wk 增加 /1/search/"+{wc:$search} */

		glist_json(url+'/'+page + '/1/search/'+{wc:$search});
	});	
	//返回顶部
	$(window).scroll(function(){
		if($(window).scrollTop()>50){
			$("#btnTop").show();
		}else{
			$("#btnTop").hide();
		}
	});
	$("#btnTop").click(function(){
		$("body").animate({scrollTop:0},10);
	});
	//添加到购物车
	$(document).on("click",'.add',function(){
		var codeid=$(this).attr('codeid');
		$.getJSON('{WEB_PATH}/mobile/ajax/addShopCart/'+codeid+'/1',function(data){
			if(data.code==1){
				addsuccess('添加失败');
			}else if(data.code==0){
				addsuccess('添加成功');				
			}else{
				addsuccess('已购买至限购上限');	
			}
			return false;
		});
	});
	function addsuccess(dat){
		$("#pageDialogBG .Prompt").text("");
		var w=($(window).width()-255)/2,
			h=($(window).height()-45)/2;
		$("#pageDialogBG").css({top:h,left:w,opacity:0.8});
		$("#pageDialogBG").stop().fadeIn(1000);
		$("#pageDialogBG .Prompt").append('<s></s>'+dat);
		$("#pageDialogBG").fadeOut(1000);
		//购物车数量
		$.getJSON('{WEB_PATH}/mobile/ajax/cartnum',function(data){
			$("#btnCart").append('<em>'+data.num+'</em>');
		});
	}
	//跳转页面
	var gt='.goodsList span,.goodsList h2,.goodsList .Progress-bar';
	$(document).on('click',gt,function(){
		var id=$(this).attr('id');
		if(id){
			window.location.href="{WEB_PATH}/mobile/mobile/item/"+id;
		}			
	});

});

</script>

       
<div class="footer clearfix" style="bottom: 0px;">
    <ul>
        <li class="f_home"><a href="?/mobile/mobile/" class="hover"><i></i>云购</a></li>
        <li class="f_announced"><a href="?/mobile/mobile/lottery"><i></i>最新揭晓</a></li>
        <li class="f_single"><a href="?/mobile/shaidan/"><i></i>晒单</a></li>
        <li class="f_car"><a href="?/mobile/cart/cartlist"><i></i>购物车</a></li>
        <li class="f_personal"><a href="?/mobile/user/login"><i></i>我的云购</a></li>
    </ul>
</div>


<script type="text/javascript">
    var Base = {
        head: document.getElementsByTagName("head")[0] || document.documentElement,
        Myload: function (B, A) {
            this.done = false;
            B.onload = B.onreadystatechange = function () {
                if (!this.done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
                    this.done = true;
                    A();
                    B.onload = B.onreadystatechange = null;
                    if (this.head && B.parentNode) {
                        this.head.removeChild(B)
                    }
                }
            }
        },
        getScript: function (A, C) {
            var B = function () { };
            if (C != undefined) {
                B = C;
            }
            var D = document.createElement("script");
            D.setAttribute("language", "javascript");
            D.setAttribute("type", "text/javascript");
            D.setAttribute("src", A);
            this.head.appendChild(D);
            this.Myload(D, B);
        },
        getStyle: function (A, C) {
            var B = function () { };
            if (C != undefined) {
                B = C;
            }
            var C = document.createElement("link");
            C.setAttribute("type", "text/css");
            C.setAttribute("rel", "stylesheet");
            C.setAttribute("href", A);
            this.head.appendChild(C);
            this.Myload(C, B);
        }
    }
    function GetVerNum() {
        var D = new Date();
        return D.getFullYear().toString().substring(2, 4) + '.' + (D.getMonth() + 1) + '.' + D.getDate() + '.' + D.getHours() + '.' + (D.getMinutes() < 10 ? '0' : D.getMinutes().toString().substring(0, 1));
    }
    $(document).ready(function () {
        var _SkinDomain = $("#hidIsHttps").val() == "1" ? "https://skin.1yyg.net" : "https://skin.1yyg.net";
        Base.getScript(_SkinDomain+'/v41/weixin/JS/Bottom.js?v=' + GetVerNum(), function () {
            var _pagetype = $("#hidPageType").val();
            var _footer = $("div.footer");
            var _cartpay = $("#mycartpay");
            var _cartlist = 0;//$("li", "#cartBody");
            var _saysome = $("div.saysome");
            var _curpage = window.location.href.toLowerCase();
            
            var _ishide = false;
            if (_cartpay.length > 0 && _cartlist.length > 0) {
                _footer = _cartpay;
                _pagetype = "1";
                _ishide = true;
            }
            else if (_saysome.length > 0)
            {
                _footer = _saysome;
                _pagetype = "1";
            }
            //弹出输入法是否隐藏底部导航
            if (_curpage.indexOf('/member/recharge.do')>0 || _curpage.indexOf('/member/goodsbuydetail-')>0)
            {
                _ishide = true;
            }

            var _hh = parseInt($(window).height());
            var _ww=$(window).width();
            if (_pagetype != "-1" && _footer.length>0) {
                var SetFooterPos = function () {
                    var j = 0;
                    var _setObj;
                    _setObj = setInterval(function (){
                        var _hh1 = parseInt($(window).height());
                        var _hh2 = _hh - _hh1;

                        if (_hh1 > 200) {
                            if (_hh2 > 0) {
                                if (parseInt($(window).width()) != parseInt(_ww)) {
                                    _footer.css("bottom", 0).show();
                                }
                            }
                            else {
                                _footer.css("bottom", 0).show();
                            }
                            j++;
                           //$("#mycarttest").html(_hh1 + "||" + _hh2 + "||" + $(window).width());
                            if (j == 3) {
                                clearInterval(_setObj);
                            }
                        }
                    }, 100);
                }

                SetFooterPos();

                window.onresize = function () {
                    if (_ishide) {
                        _footer.hide();
                    }
                    SetFooterPos();
                };
            }
        });
    });
</script>

    </div>






      
<div id="div_fastnav" class="fast-nav-wrapper"><ul class="fast-nav"><li id="li_menu" isshow="0"><a href="javascript:;"><i class="nav-menu"></i></a></li><li id="li_top" style="display: none;"><a href="javascript:;"><i class="nav-top"></i></a></li></ul><div id="xs" class="sub-nav five" style="display:none;"><a href="?/mobile/mobile/"><i class="home"></i>云购</a><a href="?/mobile/mobile/lottery"><i class="announced"></i>最新揭晓</a><a href="?/mobile/shaidan/"><i class="single"></i>晒单</a><a href="?/mobile/user/login"><i class="personal"></i>我的云购</a><a href="?/mobile/cart/cartlist"><i class="shopcar"></i>购物车</a></div></div>

     






</body></html>

<style>
#pageDialogBG{-webkit-border-radius:5px; width:255px;height:45px;color:#fff;font-size:16px;text-align:center;line-height:45px;}
</style>
<div id="pageDialogBG" class="pageDialogBG">
<div class="Prompt"></div>
</div>


